package routers

import (
	"github.com/beego/beego/v2/server/web"
	"web-beego.com/v1/controllers"
)

func init() {
	web.Router("/main", &controllers.MainController{})

	web.Router("/", &controllers.HomeController{}, "*:Index")
	web.Router("/login", &controllers.HomeController{}, "*:Login")
	web.Router("/doLogin", &controllers.HomeController{}, "POST:DoLogin")
}
